class MathUtil {
	public constructor() {
	}

	public static calcDistance(x1:number, y1:number, x2:number, y2:number) {
		var dx = x2 - x1;
		var dy = y2 - y2;
		var dist = dx * dx + dy * dy;
		var tt = Math.sqrt(dist);
		
		return tt;
	}

	public static random(n1:number, n2:number) {				
		return Math.round((Math.random() * (n2 - n1) + n1));
	}

	
}